import { IBaseReponse } from "@/type";
import { Key } from "react";

export interface IFetchListProps<Response> {
  /**
   * 每个页面获取列表的接口
   */
  API: (params: any) => Promise<IBaseReponse<Response[]>>;
}
export class BaseParamsClass {
  public pageSize = 10;
  public pageIndex = 1;
}
export interface IDelListProps {
  /**
   * 每个页面获取列表的接口
   */
  API: (ids: Key[]) => Promise<IBaseReponse<IDelResponse>>;
  title?: string;
  success?: any;
}

export interface IDelResponse {
  success: boolean;
  total?: number;
  errMessage?: string;
}
